Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing regenerator runtime dependency in core #2245

Merged
merged 1 commit into from
Aug 23, 2021

Conversation

garrettjstevens
Copy link
Collaborator

According to the babel docs, if you use @babel/plugin-transform-runtime, you need to have @babel/runtime as a dependency for the package. This adds that missing dependency to our @jbrowse/core package. It also makes the "regenerator" option for that plugin be true, the default, because I was still seeing errors while troubleshooting #2244 unless I made that change.

@codecov
Copy link

codecov bot commented Aug 23, 2021

Codecov Report

Merging #2245 (974c46f) into main (c736485) will increase coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2245      +/-   ##
==========================================
+ Coverage   62.94%   62.96%   +0.02%     
==========================================
  Files         485      485              
  Lines       22716    22716              
  Branches     5159     5159              
==========================================
+ Hits        14298    14303       +5     
+ Misses       8148     8143       -5     
  Partials      270      270              
Impacted Files Coverage Δ
packages/core/babel.config.js 0.00% <ø> (ø)
packages/core/assemblyManager/assemblyManager.ts 61.42% <0.00%> (+1.42%) ⬆️
packages/core/util/when.ts 54.05% <0.00%> (+10.81%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c736485...974c46f. Read the comment docs.

@garrettjstevens garrettjstevens changed the title Add babel runtime dep, enable regnerator Fix missing regenerator runtime dependency in core Aug 23, 2021
@cmdcolin
Copy link
Collaborator

this change may be good for now, but what if we moved away from using babel/plugin-transform-runtime? we are not targetting older browsers, and may have reduced bundle sizes as a result.

@rbuels rbuels merged commit 735fe84 into main Aug 23, 2021
@rbuels rbuels deleted the core_regenerator_runtime_fix branch August 23, 2021 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants